<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<title>Form Wizard - Ace Admin</title>

		<meta name="description" content="and Validation" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />

		<!--basic styles-->

		<link href="Public/Admin/css/bootstrap.min.css" rel="stylesheet" />
		<link href="Public/Admin/css/bootstrap-responsive.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="Public/Admin/css/font-awesome.min.css" />

		<!--[if IE 7]>
		  <link rel="stylesheet" href="Public/Admin/css/font-awesome-ie7.min.css" />
		<![endif]-->

		<!--page specific plugin styles-->

		<link rel="stylesheet" href="Public/Admin/css/select2.css" />

		<!--ace styles-->

		<link rel="stylesheet" href="Public/Admin/css/ace.min.css" />
		<link rel="stylesheet" href="Public/Admin/css/ace-responsive.min.css" />
		<link rel="stylesheet" href="Public/Admin/css/ace-skins.min.css" />

		<!--[if lte IE 8]>
		  <link rel="stylesheet" href="Public/Admin/css/ace-ie.min.css" />
		<![endif]-->

		<!--inline styles related to this page-->
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>
	<style type="text/css">
		#page li {
		    list-style: none;
		    float: left;
		    height: 20px;
		    padding: 0 5px;
		    margin: 0 5px;
		    border: 1px solid #005580;
		}
	</style>
	
	<body>
		
		<div class="page-content">
			<div class="page-header position-relative">
				<h1>
					订单管理
					<small>
						<i class="icon-double-angle-right"></i>
						待收货订单
					</small>
				</h1>
			</div><!--/.page-header-->
			<div class="row-fluid">
				<div class="span12">
					<!--PAGE CONTENT BEGINS-->

					<div class="row-fluid">
						<div class="span12">
							<table id="sample-table-1" class="table table-striped table-bordered table-hover">
								<thead>
									<tr>
										<th class="center" width="60">
											<i class="icon-link"></i>
											订单ID
										</th>
										<th >
											<i class="icon-leaf"></i>
											收货地址
										</th>
										<th class="" width="100" >
											<i class="icon-money"></i>
											收货人
										</th>
										<th class="" width="80" >
											<i class="icon-truck"></i>
											联系电话
										</th>

										<th class="" width="80">
											<i class="icon-time"></i>
											订单时间
										</th>
										<th class="" width="80" >
											<i class="icon-eye-open"></i>
											订单总价
										</th>
										<th style="width: 150px;">
											<i class="icon-wrench"></i>
											订单操作
										</th>
									</tr>
								</thead>

								<tbody>
									{{foreach from="$unrecOrder" value="$v"}}
									<tr>
										<td class="center">
											{{$v['oid']}}
										</td>

										<td style="overflow: hidden;">
											{{$v['address']}}
										</td>
										<td class="">
											{{$v['consignee']}}
										</td>
										<td class="">{{$v['tel']}}</td>
										<td class="">{{date('Y/m/d',$v['time'])}}</td>
										<td class="">{{$v['total']}}</td>
										<td>
											<div class="btn-group">
												<a href="{{U('Order/haverec',array('oid'=>$v['oid']))}}" class="btn btn-mini btn-info">
													<i class="icon-edit bigger-120"></i>已收货
												</a>

												<a href="javascript: if(confirm('您确定取消这条订单吗？')) location.href='{{U('Order/del',array('oid'=>$v['oid']))}}'" class="btn btn-mini btn-danger">
													<i class="icon-trash bigger-120"></i>取消订单
												</a>
											</div>

										</td>
									</tr>
									{{endforeach}}
								</tbody>
							</table>
							<ul id="page">
								{{$page}}
							</ul>
						</div>
					</div>
		</div><!--/.page-content-->

	</div><!--/.main-content-->
</div><!--/.main-container-->

	</body>
</html>
